package dp.strategy;

import dp.strategy.behavior.impl.FlyRocketPowered;
import dp.strategy.ducks.DecoyDuck;
import dp.strategy.ducks.MallardDuck;

public class DuckApp {


	public static void main(String[] args) {
		
		GeneralDuck duck1 = new MallardDuck();
		duck1.display();
		duck1.peformFly();
		duck1.peformQuack();
				
		duck1 = new DecoyDuck();
		duck1.display();
		duck1.peformFly();
		duck1.peformQuack();
		duck1.setFlyBehavior(new FlyRocketPowered());
		duck1.peformFly();

	}

}
